package com.easywan.web.controller.bank;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.easywan.core.BaseController;
import com.easywan.pojo.IResult;
import com.easywan.service.IToolsBankCreateService;

@Controller
@RequestMapping("bank")
public class BankCardCreateController extends BaseController{
	@Autowired
	IToolsBankCreateService bankCreateService;
	@RequestMapping("bankCardCreate")
	public String index(){
		return "bank/doBankCard.jsp";
	}
	@ResponseBody
	@RequestMapping("doBankCard")
	public String doBankCard(HttpServletRequest request,HttpServletResponse response){

		String bankNo = getString(request,"bankNo");
		IResult result = bankCreateService.doBankCreate(bankNo);
		
		return toJSON(result);
	}
}
